package edu.codink.xq.center.dao;

import java.util.ArrayList;
import java.util.List;

@SuppressWarnings("unchecked")
public class PageSimple 
{
	//返回的记录
	
	private List data;
	//总数量
	private Long totalCount;
	
	public PageSimple(List data,Long totalCount)
	{
		this.data = data;
		//前端Extjs分页控件如果返回值是null，页码计算会出现问题
		if(data == null)
		{
			this.data = new ArrayList();
		}
		this.totalCount = totalCount;
	}

	public List getData() {
		return data;
	}

	public void setData(List datas) {
		this.data = datas;
	}

	public Long getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(Long totalCount) {
		this.totalCount = totalCount;
	}
}
